using System;
using CosyTrade.Core;

namespace CosyTrade.Network
{
    [Serializable]
    public class Response
    {
        private readonly object returnValue;
        private readonly RemotingException exception;

        public Response(object returnValue, RemotingException exception)
        {
            this.returnValue = returnValue;
            this.exception = exception;
        }

        public object ReturnValue
        {
            get { return returnValue; }
        }

        public RemotingException Exception
        {
            get { return exception; }
        }
    }
}